Bodily functions can be brought under control, under highest form of Yogic techniques.
The following is an excerpt from the famous book by Dr. Paul Brunton "A search in Secret India".
The author met an yoga expert by name Brama in Madras (now Chennai). Brama demonstrates that heart beat/pulse can be stopped.
"You can control the working of your heart?" ...