Basically, if you wouldn't do it in front of your mom, don't do it to a colleague.
And anyway, if your intent is actually to get laid, then randomly asking people in professional environments is the worst way to do so. It's not even a good tactic in nightclubs, let alone in the workplace. So you're not actually accomplishing your intended goal; you're just harassing your female colleagues.
Good god man, ask people out for drinks first, don't just jump immediately to asking for sex! Did no one teach you how dating or hook-ups work?!
Anyway I said "could", not "would". It depends on how coarse you are with it, how dogged you are in doing so despite being told no, how many different people you do it to, and of course if you're reported.
The overall point is, though, that it's not a good idea.