in reply to Closing an open socket by its fileno
Yep, closing that filehandle will cause the descriptor associated with it to close.
duff