Correct Neal and some window mfgrs do not want foam used. So, Wg, you should check with both and see how to proceed.
Here is S. California, we ALWAYS carefully foam. Never blew out a frame, discolored a window, or had a problem. To each his own . . .