Please be sure to work with a colorectal surgeon who has the expertise to do the least necessary, and not just a general surgeon or oncologist. My colon was resected in 3 places. With any other surgeon, I would have ended up with a colostomy; with my specialist, I was reconnected perfectly, and my bowels work absolutely normally by anyone's standards.
Depending on the extent and location of your cancer, you may not be able to escape having an ileostomy, but you give yourself the best chance if you see a specialist. Also, note that in many cases, ostomies can be temporary, while allowing the bowel to heal, and then you can be reconnected. Find out the why's and wherefore's of your dr's recommendations.