Started metformin today

Took my first doses today and tonight I find myself with a sudden on set of diarrhea like I literally cleaned myself out sorry for the TMI ..but Is this because of the pills ?