There are slight if not more obvious differences across various
models of portable Mac & charge technologies are concerned.
Compare your product to those shown here to see:
• Find the right power adapter and cable for your Mac notebook - Apple Support
https://support.apple.com/en-us/HT201700
If yours is newest one available; and has a recent rendition of MagSafe
magnetic power ports and matching adapter, I'd be suspect if that is
actually identical enough to use from an earlier version. 'Power pins'
are spring-loaded in earlier ones; at certain specific distance apart, etc.
• Identify your MacBook Pro model - Apple Support
And if yours is extremely new (as it could, if newest & just minted)
articles across Apple Support have no uniformity; it doesn't show.
Good luck & happy trails!🌞🐝