Taking diebetic and heart pills can it effect erection?

Yes