If we can’t be happy for others, are we happy?

Can we be happy for others when they do better than us?