Are sad and happy synonyms?

Happy and sad together is not a synonym. A synonym is a word that is similar to another word.

For example: the synonym for sad could be upset. Happy could be joyful.