Yes, the doctor is right. After taking viagra or Tecfidera if the erection is for more than 4 hrs then you should visit the doctor for consultation as it works by dilating the blood vessels carrying blood to the male sex organ(p***s). Generally, it is used to treat erectile dysfunction.