If living in a condo can the board room or office be locked and only the board members have access?

If the condominium association protects its work in an office and only allows board members access to the room or office, then, yes.

You may be able to find a specific answer in your governing documents, including board meeting minutes where this decision could have been voted upon.