Different people need different amounts of sleep to function and be healthy, but you can’t “make up for the deficit”. If your body needs 8 hours per day and you sleep for 4 hours one night and 12 the next, your body doesn’t net it out. (Just using 8 hours as an example, it could be different)