Is it really dangerous to have an erection that lasts for hours?

Yes. This is known as priapism and is dangerous for the penis. Any erection that lasts for more than 3 to 4 hours must be immediately evaluated as this can lead to scarring in the penis and cause future erectile dysfunction and curvature to the penis. It generally has to be treated with a penile injection of medications to resolve the erection.