It's usually a congenital condition, but can also result from having rheumatic fever
There are some medications that his doctor may prescribe and will likely want to monitor things on a regular basis and may decide at some point that a valve replacement
His doctor needs to advise him about exercise and other types of exertion such as sex.
Some additional information can be found here:
Good luck to you and your boyfriend!