Yes, the temporary file will also be generated when you create a Photoshop file. The distinction is that Photoshop works with multiple pieces of data simultaneously and saves the temporary files to a Scratch disk rather than your computer's memory.