Yes, there can be tears in either case, but you must understand that tears are a sign of a high emotional experience, usually sadness causes us stronger emotions, but sometimes happiness can also cause tears. In order to distinguish tears of happiness from tears of sadness, you need to have a developed emotional intelligence, it really helps to distinguish other people's emotions and perhaps even direct them in the direction you need. I can share with you this article https://www.robertgilljr.com/how-to-measure-happiness/ on how happiness arises and how you can measure it. It seems to me that such articles on psychology are very useful for people who want to better understand their emotional state, respectively, to better understand the emotions of other people.