Ping is the round trip time from your device, to whatever you are pinging.
Once the signal leaves your house (and router), you have zero influence over how long it takes.
With the exact same equipment...if I ping my neighbor (on the same ISP), it will be significantly faster than if I were to ping a server on the other side of the planet.