After thinking about it for a minute I don't think so, for one technicality. If we can advance technology to the point of being able to create a real holodeck, then I'd think the use some sort of of sex bots or subconsious VR can fill the need just as effectively without eating up your extremely valuable holodeck time. Let's face it, a holodeck would be ridiculously expensive, and if it's a shared one like on a starship your time will be strictly rationed. Not that sex wouldn't be a good use for it but by then there should be far easier and cheaper ways to get it done. Using a holodeck for sex would be like a 4-figure ($$$) hooker.