Switchin to whole milk

Just transitioned my LO to whole milk. The first 2 weeks he pooped pellets. Now this week I’ve noticed he’s been pooping diarrhea.

Do they need to get use to the whole milk is that why he’s pooping like that?