Explain this 1940's style joke*

This is exactly how I interpreted it. It’s funny because he’s more worried about the gay than he is about the gun.