Its impossible to know if your joke might be offensive to others when you live different lifestyles.
It’s like telling people not to serve food that might be prohibited by the religion of one of their dinner guests when they have never interacted with the religion before.
What OP does here is trying to educate himself, which is the right move, in my opinion.