Yes, you may inform your mass through a WhatsApp message or any other proper communication channel. However, after two days, you are required to provide a proper medical certificate and sick leave application.