Sleep during a nap can reduce the pressure that has built during waking. That can improve alertness, but it can also make later sleep harder, especially if the nap is long or close to the next sleep period.
The trade-off depends on your schedule and response. Someone preparing for night work has a different next sleep opportunity from someone trying to sleep at 11 pm. Being short of sleep does not make every nap harmless.