water fasting

Oolaa
I was just wondering is it safe to do fasting when im on the pill? Is it not gone change the way the pills work?