Having a colonoscopy
is safe, but some patients can be dehydrated afterwards.
In addition, there is a risk of low grade fevers after the procedure. Waiting a few days is all that is likely needed. At that point, if one feels well and has no signs of illness one can donate.