There are documented cases where the staff at an institution has violated federal law and have sexual contact with an inmate (mostly consensual). However, this never ends well. The inmate gets shipped to an inconvenient location with higher security and less privileges, the staff member will do federal prison time.
https://www.inmateaid.com/ask-the-inmate/did-any-of-the-correction-officers-try-and-sleep-with-inmates-im-wondering-if-anyone#answer
Accepted Answer Date Created: August 15,2016