Yes, styrofoam is safe to use as filler in a planter; it won't degrade in the environment.