By default, Photoshop cannot produce vector files. It can only make some raster files with embedded vector data. It might be a vector square whose corners will remain crisp and sharp. However, a gradient fill can cause its edges to become flat.