We all need a certain amount of sleep
Even as adults, we know that a nap will make us go to bed later in the day. In a perfect world, we should have a good night's rest every night. The only way to answer your question is for you to try taking out the afternoon nap, and see if your baby will sleep at an earlier bed time and longer at night. If it doesn't help, let him/her nap.