Is it okay

Is it okay if my baby is squirmy for a feed through the night if I put his dummy in he goes back to sleep, he's 4 weeks is this okay to do or not