Dude. Your statement tells me you don't actually know anything about astronomy. You wouldn't know it if you were in a nebula without any instruments. Plus we have seen Class M planets inside Nebulae in Trek.As far as I know, there's no planet in our solar system with a star on one side and a nebula close enough to light up the other side at the same time.
Obviously not but if you knew anything about astronomy/astrophysics you'd know that NO M class planet could be that close to a nebula. And that was an M class planet. So I think the nebula was quite obviously an exaggeration to symbolize their voyage into the unknown.
I'm a student at UBC and have started my MA. I'm pretty damn confident that's what I've been studying. I admit it's been a while since I've watched Trek (I stopped after Voyager, wasn't interested in Enterprise, and only recently started rewatching all the shows) so I cannot recall an episode where that was shown. However, in reality, that would be a very unlikely scenario. The components necessary for a planet to develop life, any life - let alone intelligent life - are extremely delicate in nature.
Components like methanol and water have been found in Orion per se, but it's a far cry from intelligent life. It's possible that microscopic life may start forming in a nebula, even as far as complex organic molecules. It can essentially be a womb for a process that would evolve into something else millions, perhaps billions years later when the environment would allow.
There's microbes on this very planet that could easily flourish in space - even in radioactive environments (similar to those found in nebulae) but the turbulent nature of nebular clouds would, as far as we know, make it impossible for those to evolve.
It's also unnecessary to question one's field of studies and work. I get that this is the internet but it's just plain rude. I wouldn't have said it for shits and giggles.