The only real case I could see where grabbing someone to cover you while you take a bathroom break might not work is, for example, someone working as a yard marshal... since that's not something everyone gets trained for, so the pool of replacements is smaller (including among process assistants).
So unless this worker was working the yard... there's not a lot of reason to deny them bathroom breaks... and that goes whether they're pregnant or not honestly.