Science fiction and comedy go hand in hand like peanut butter and spark plugs. You don't think they'll work together, and they don't. You car will not run properly if you put peanut butter on the spark plugs, so for the love of God please don't do it.
Fortunately, TV shows are nothing like an internal combustion engine, so it's not as big of an issue.
There's actually quite a long history of comedy being used in science fiction shows - for example, Star Trek has always featured comedic episodes mixed in with each series.
Comedy is extremely important, as it humanises the characters, and makes them more relatable to the viewer. It can be hard to connect with someone as smart as Captain Picard if he isn't also funny every once in awhile.
Over the years, there have been several science fiction series where comedy is the point. In many cases, those series are animated as the format certainly lends itself well to science fiction comedy combinations. That being said, there have been more than a few great live action series that fall into that category over the years.
Ian Goodwillie is a freelance writer based out of Saskatoon, SK, Canada. He has a BA in English Literature from the University of Saskatchewan and completed the Writing Program at Vancouver Film School. More importantly, Ian is also a wrestling fan, comic book reader, video game player and photographer. He loves to write and writes about what he loves. Ian's also an unrepentant, unapologetic Cougar Town fan, a show he will defend until the day he dies.