Yup. I was a defense contractor back in the 80s. While you couldn't be gay in the uniformed military, you could still have a security clearance and be a contractor or in the NSA or CIA - but you couldn't be in the closet, because that might be used for blackmail, especially in states where it was still illegal to be gay. So there were some famous researchers who'd had to come out to their families.
They asked about a lot of other things; they didn't mind that some of my coworkers had used drugs back in college and then stopped, but they really freaked out when one guy said he'd smoked dope, liked it, and might well do it again
A friend of mine in the Air Force had a buddy who'd put down that his previous job experience included working at a candy store back home in the Bronx, and the guy who ran the place said he'd never heard of him. Had to have his dad go tell Cousin Luigi that it was the Feds checking on his security clearance for the service, not anybody checking into the numbers game that might or might not have been running out of the back room.