Well no, that sentence option was ended in 1998. However AFAIK high treason still stands and carries a life sentence and sleeping with the Queen's husband is still high treason and hasnt been superseded.
What if the Queen is a participant? And how is the act of sex defined? Or did the drafters of this law not consider threesomes and handjobs? If not, it is a very poorly written law, imo.