No, you don't have to set the team number in your code. However, you have to set your team number on the OI, using the team number switches.
Check out page 13 in the OI reference:
http://www.ifirobotics.com/docs/oi-r...de-1-30-07.pdf
EDIT: Sorry, dpick1055 beat me to it
