I wouldn't recommend taking erectile dysfunction pills.
The erectile dysfunction medication causes your heart to start beating faster which increases blood flow to your penis.
Anything that messes with your heart beat is not good.
Try a penis pump instead to get erect. It's much safer.