Yes, it is legal. While a salaried employee would not lose pay if the business begin the day open but closed early, a business is allowed to not pay salaried employees for entire days that they miss, whether that is due to a business closing or due to an unpaid absence (e.g. the employee was sick and could not work, but had used up or otherwise did not have sick days).