To upgrade to R-30, Yes, definitely.
But, not to have it foamed. That's REALLY expensive.
Also, check with the foam contractor about whether the foam is combustible. Some building departments
won't allow it unless it is treated after foamed, with a chemical to make it non-combustible. I saw...