The prophet (sa) said:
“Allah
has lifted the obligation of fasting and
part of the prayer from the traveler, and He has
lifted the obligation of fasting from the pregnant
and breastfeeding woman.” - Tirmidhi
But again this is if the life is in dangered