Yes it is possible to replace a 6TB drive with a larger (or smaller) one.
For example I’ve experimented with a 12TB hard drive inside a single bay first gen My Cloud with another 12TB external hard drive attached to that MY Cloud’s USB port before moving those two 12TB drives to a different manufacturer’s NAS enclosure.