Can I use spray yellow insulation foam around a window air conditioner?

Can I use that yellow foam insulation spray to spray around a window a.c. unit?
6 answers 6