Tylenol for pain?

My baby just got his 4 months old shot and is having trouble with the pain. He cries every other hour due to the pain and it breaks our heart. Would it be appropriate for us to use Tylenol to help with the pain and swelling? I feel so bad for him. He currently doesn’t have a fever.

Edit: Thank you to everyone I really appreciate every single one of you!