If you’re being taught by people from that culture/taught by people who were sanctioned to teach by that culture, it’s probably alright.
Or someone who was actually trained by someone from that culture.
The most important thing when it comes to that is finding a qualified dojo/gym/etc… A lot of places aren’t qualified in any way whatsoever, leading to kids just getting lessons how how to kick someone without any real martial art involved.
A lot of (usually) white “dojo” owners take advantage of the fact that so few people know what real foreign martial arts look like in order to make a quick and easy buck.