Yeah, sexology is largely a division of psychology.
Of course the heart pumps blood to vital organs first. It's possible to penetrate and even ejaculate while flaccid -- more difficult but possible -- so natural selection doesn't place as much emphasis on sexual potency as it does on keeping the brain working. There are, of course, species where the males die during mating, but they typically have hundreds, even thousands, of offspring.