Yes, Lucas has been heavily inspired by Dune when creating Star Wars (A New Hope). To be honest, you could name it "stealing an idea". Could... Frank Herbert didn't sue Lucas for this, and I don't think there is a monopoly on a science fiction planet design.

You could also argue that Dune itself was influenced by the John Carter of Mars series, which is old enough that the original books are in the public domain and like Dune, they share similarities. Hence, why when news of the Disney acquisition broke, people attributed the bombing of "John Carter" as the motivation behind Disney buying Lucasfilm. But I think even if all three universes share similarities where maybe the same idea started them off, they're all unique takes on it that have grown into their own original universes.