Yes, there are. Morocco has laws relating to those things that are, “an act of aggression against Moroccan Muslim society and people” – kissing in public falls into this category.
There are people who do find their way around rules but I am a firm believer in following the laws of the country you are living in or a guest in.