Crew are being quarantined some places, not optionally. Pilots
may get away with it (not as dumb as it sounds - being in prolonged contact with anyone not also on flight deck is/should-be unlikely). See e.g.:
https://liveandletsfly.com/hong-kong...ine-detention/
https://viewfromthewing.com/british-...nt-quarantine/