I'm not sure if you're serious or not, I hope not but assuming that you are I can only suggest that you go for it. Although such a contract would be unlikely to be enforceable, outside of select third world countries, it would without doubt save you from any sort of false accusation. But there are ways to not have sex that are less hassle than drawing up contracts.