Will baby get used to being carried if I carry him for comfort when he has stomach pain?

Mo

I do carry baby when he is in pain. Currently he has stomach pain and it soothes him a bit to let him cluster feed, carry him and hold him. Only I wonder if am creating bad habits.