It depends. For the Air force, active duty student pilots will find out what type of aircraft they will get at the end of pilot training. Generally, you fly one type of aircraft for your career. However, some aircraft are special duty aircraft, so you only fly those for a few years.
If you go Air National Guard, you know what kind of aircraft you will get, and where it is based.