Yes.

Make sure that مغلقة/مغلق is in the proper gender and noun terms. If you want a simple sign to hang on your door just write مغلق للصيانة