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 :-) (It took an extra six months for his clearance to come through.) And they really cared a lot about people who had relatives in Communist countries, not because they were worried that Cousin Ivan might have corrupted you into being a Commie, but because the KGB might threaten to kill your grandma if you didn't give them the secret plans. In my case, they asked a bunch of questions one year about my involvement in the Libertarian Party, because some of them weren't quite familiar with the concept that there were more than two political parties (plus the Commies, and they'd kind of forgotten about George Wallace.)
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.