By styrofoam, I assume that you mean foamboard insulation. It is in fact an EXCELLENT thermal insulator, particularly for basement walls which can have moisture problems that would make a moldy mess of fiberglass insulation.
Build your stud wall in front of or against the foamboard.