If you do it in a comedy way, sure, why not?
If we can joke about cops (reno 911), bar owners (it's always sunny in philadelphia), rural americans (king of the hill and many, many other), canadians (south park), italians (euro trip), gingers (south park), nerds (pretty much every college movie), french girls (malcolm in the middle), middle managers (basically, every office-based movie), bodybuilders (brooklyn 99), "aspiring actresses" (working as baristas), student cooks (usually by gordon ramsey), .... why not us? Oh and let's not forget blondes.
Do you assume all italians wear stockings and molest other guys on trains if you've seen Eurotrip (movie)? Nope. Do you assume all french girls don't shave? Nope. So if the whole of the balkans, including bosnia has many many jokes with "Mujo and Haso" (they represent a "stupid" couple of guys, where the pun is in their stupidity, why do you (I assume you're not from the balkans) get to be offended for other people? There's even a movie just with jokes about them... made by bosnians of course - https://www.imdb.com/title/tt5085118/
We also have regional jokes, where in slovenia, people assume that people from gorenjska region are stingy (in serbia, it's people from pirot).
A joke is a joke, you don't have to get offended for other people.
edit: also, we don't start wars because we thing the others are subhuman, we just stereotipically hate eachother (as groups, not as individuals), due to historic reasons, mostly war-related.
ps: What you americans would call racism could only be mentioned maybe against gypsies here (eve though they're techncally the same race). And even that is mostly by assuming, that if someone stole your gutters around the house (or basically anything metal), that it was the gypsies. Usually it's even true.