Can diarrhea decrease the amount of amniotic fluid

Today morning i had loose motions I'm really scared if that could effect my child and decrease my amniotic fluid I'm 38 weeks pregnant will i go into labour cause I've lost my mucus plug and I'm having constant braxton hicks and is there any remedies to stop This diarrhea