Yes! You can apply gains even if you have compressed files such as JPEGs available with reduced-quality could obtain promising results which showcase more detail when upscaled compared to just increasing the canvas size in legacy methods