Hey there, Werty34.
I see no problem with upgrading your AIO computer with and SSD. However you'd have to consult with its User Manual on how to replace the drive, check some video tutorials, or get in touch with its manufacturer's customer support for more help and details.
So basically, that's it, the answer is "yes", you can use an SSD.
Hope that helps.
Boogieman_WD