Okay, you're talking about opting out of pension contributions, not NI altogether. NI contributions cover more than just the state pension plan, and you cannot opt out of them altogether.
Yes, you can opt out of the pension plan, but just because you are moving back to the US eventually doesn't mean you won't get paid the pension benefits. You don't have to retire in the UK to receive your benefits when you achieve retirement age.