Encrypted Time Machine Disk

So, my question is if I encrypt my time machine backup disk on the MAC today and I get a ransomware preload infection (which activates in say 7 days) will the ransomware still be on the backup disk just waiting for the 7 days to come up and install itself if I ever need to restore my backup? My assumption is that Bitdefender can not find a dormant ransomware infection, only one that is active. is this a probable situation?