That's quite often the primary, not the secondary. Protecting against unwanted pregnancy is a nice side-effect of the medicine prescribed to help control literally debilitating menstrual cycles.
Is a ski helmet recreational? Not directly; but it makes a recreational activity safer, so it provides indirect recreational value.
Whether birth control pills are used for recreational purposes is a question of semantics; they have no direct recreational use, but make indirectly support recreational activities.