Is your foam the same as the foam sprayed around windows and doors?

No. Although you can buy cans of foam that are low expansion or high expansion and are a type of polyurethane foam, they contain a different chemical composition and are applied using aerosol which achieves a much lower R-value.