Sudden ED?

I have developed erectile dysfunction this past week or so, I can’t figure out why but it happened i know u gotta stay healthy but I’m not that out of shape i mean i go to bed late (4am) but i sleep so late i get more then enough sleep. I drink 2 bottles of water a day. I’m trying to get on treadmill for 30min-1hr now, hopefully, this will help. Or else I have to go with Tadalista 20 mg Tablets medication. Is it fine to go with medicines?