Yes, it's okay to hold your boyfriend or girlfriend's hand in Morocco. It is very common to see the elderly and the younger generation doing the same in public places. So holding your partner's hand is not a problem on the street. A hug or a stolen kiss in public is also no problem.