It depends on the reason for not being at work and what the contract of employment says.
Reasons for not being at work can be classified into: