That will not change the file size, only if resampling is enabled to change the pixel dimensions, then it will. When that happens it will affect the quality of the image as pixels will be lost.
When resampling is not checked, all that happens when you adjust he ppi is the physical dimensions (print size) changes and that's all. It just determines how many pixels will be in an inch.