When your energy is full, energy rewards that pop out (such as from tapping on tasks or tappable items) will not get added to your energy total. If you have full energy, consider using up some of that energy so you can earn more in-game.
However, when you purchase energy in the Starshop or receive it in a gift box, you can always add it to your energy total regardless of the maximum allowed.