Do you really think within a genre certain themes and topics become verboten? Whatever inspires or influences the shape of a story comes from anywhere, whether from other works or reality. It’s a natural process and isn’t even bold for Star Wars as a space opera. There are no rules!
Whether or not it amounts to anything in your reception, isn’t even a part of that larger discussion