Possibly if you get to the stain really quickly, some hydrogen peroxide. I know it works well on cotton sheets; the dense pile of a rug may make it more difficult.
Soap and cold water perhaps, and lots of blotting.
(Just what have you been up to, anyway?)