Is this safe for 2 month old?

My daughter is 2 months old Monday. She’s getting shots tomorrow and I was told to give her pain reliever 2 hours before and after her appointment. If I need to buy something else I will but I have this at home and was wondering if it’s safe to give since it says 24 months as the dosage.

edit: thank you for all the responses! I’m a first time mom and stress about this stuff lol. I ended up not giving her anything before and asked her doctor about giving this to her if she ran a fever. She gave me a dosage chart to help.