Not necessarily. It’s true that optimising images and reducing the file size may decrease the quality. Still, generally, that decrease is not noticeable, so you can use these images on your website without worrying about the quality.