You will need to have a thorough medical exam to diagnose your erectile dysfunction and to find out if you can safely take Viagra alone or with your other medicines. Your health care provider should determine if your heart is healthy enough for sex.