yes, it will work just won't be as pretty. alot of car manufacturers use polystyrene since it's easy to work with.
blue or pink installation foam works best for a hot wire cutter. and regarding the hot wire cutter (cnc) one thing to remember is to take into account how much the wire will vaporize and adjust your design accordanly. the cut from a wire cutter is perfect. and well worth it.