can i give him Advil instead of Tylenol now?

Took him to get his shots, I thought we had Tylenol at home but we didn't but we do have baby Advil, can I give him a little bit of that?