While a colonoscopy is a generally safe procedure, there is a small risk of infection afterward. Symptoms of a bacterial infection after a colonoscopy can appear within 24 to 48 hours
https://flashugnews.com/identifying-common-symptoms-of-bacterial-infection-after-colonoscopy/