Yes, assuming the 10GB is supported on that particular MacBook (and the RAM speed is compatible). Some models cannot use more than 8GB (such as mid-2010 or older), so, it would be helpful to know which MacBook Pro you want to add the 8GB card.
There's a quick test - Just try what you have. Install the RAM, and see if it boots, and shows the total memory correctly in About this Mac.
If the RAM is not supported, or just wrong specs, you won't boot at all, and the sleep LED will blink, probably with repeating error beeps from the system.
That test won't hurt anything, and you will then know if it works.