I wouldn't. When you buy medication online, you don't have a prescription...and you don't know what you're going to get. You could get the container of viagra, but the pills have been replaced by a placebo (like sugar pills). Also, it could react with medication you're already taking, or any diseases you might have could be made worse by the Viagra!
Don't risk it. Always get a prescription.