You are correct!
Adding rigid foam above and below grade helps significantly to keep your foundation warm.
I was surprised to learn that for many areas, the ground is warmer than the air.
So, the rigid foam on the edges of the foundation helps to trap in the existing heat in the ground. Also...