It depends on what you mean by "like." Forbidden Planet is the sci-fi version of Shakespeare's The Tempest and has many aspects that may have inspired Gene Roddenberry's Star Trek. For example, there is the scene where C-57D engineer Quinn is reporting equipment damage to Commander Adams. Adams frowns and sums up the situation, "All right, so it's impossible. How long will it take?" Kirk's "impossible" demands of engineer Scott are a hallmark of Trek, beautifully summed up in The Wrath of Khan with Kirk's, "Scotty, I need warp speed in three minutes, or we're all dead!" Network execs called the first Star Trek pilot "too cerebral." And although Roddenberry amped up the action a little, Trek continued to be "cerebral," just like Forbidden Planet. Many episodes are dramatizations of written sci-fi stories.
Star Wars is more action oriented—heroes and princesses, black knights and dark castles in space. Check other threads on the forum for "space opera." I first read Edmond Hamilton's The Star Kings and sequel, Return to the Stars, around the time the first Star Wars movie had been released. I saw many similarities, including the Disruptor, an awe-inspiring ultimate weapon.
(The movie Serenity, a spin-off from the Firefly TV series, is not so much "like" Forbidden Planet, but alludes to it. The rescue vehicle crashed on Miranda is the C-57D, and the protagonists are facing a different kind of "Id monster." It should also be noted that Miranda was the daughter of Prospero in The Tempest.)