24 hours

My baby for the past 24 hours has not slept more than 5 min at a time and is awake for hours then will fall asleep 5 min then right back up and has not stopped crying he just got his shots could that b why ??