Can i use medicine to treat ED?

Patient: Hi im 20 years old and recently i am having erectile dysfunction. This started about two months ago i was having sleeping problems and then developed an anxiety that i just can’t shake off. When all this was happening i tried performing sexually with my girlfrind and it was hard for me to get an erection and if i did it wasn’t as hard as before and didnt last long. The doctors said they don’t think it is a physical problem but a combination of the sleeping disorder along with the anxiety along with stress and depression. I am taking prescribed anxiety relief pills called clorazepate. Do you think it’s ok if i use a medicine like viagra or hombron for my erectile dysfunction and do you think it will work?