Yes. Foam should be fine. I have foam under mine and it was been up and running for 10 years. The only consideration I would have is your 2 middle support pieces. I would have attached them vertically rather than horizontally. They have much more strength vertically.