No. The thumbnails you see in iCloud Photos are just previews of the file, so they do not take up any space. They only take up space when you double click on the file to open it, in which it will then download a copy to your computer.