Of course you can, but take time to learn about these people first.
Not only does writing about topics, people, places that we can only imagine help our imagination to flourish, but it allows for us to learn and research about different people, places, and things. Writers want to make their stories relatable, to a point, and by looking into the lives of others is how we can do that.
However, you have to learn about these different nationalities first, even a little bit. At least make an effort to understand or study the mannerism or faith of Jewish people if your character is going to wear the Star of David. Take the time to understand how Muslim faith ties into Hindu culture to help readers understand why your character wears a hijab, or learn the proper names of art supplies that your artiste character is going to be using when she paints. It’s little details like that that matter and make the character more relatable.