Do you have to Have sex to be healthy?

Do you have to have sex to be healthy or can you as a adult live a long healthy life with no sex and no masterbation?

Just focus on work and health and goals unless you come across the one then have sex after your married?