The accounting profession offers a wide range of career options that include tax preparers and specialists but your options certainly are not limited to just tax work. For example I work at a public accounting firm in our audit (also known as assurance) practice and we have an entire separate group dedicated to tax work.
That being said, an accounting degree and the CPA certification both will require some tax knowledge. Typically you'll have to take a class on individual income taxes and possibly a corporate tax class. One of the four sections of the CPA exam is heavily focused on these topics. Even if you are not interested in learning about taxes, I urge you to still consider a career in accounting as once you get past these classes you'll have many opportunities to pursue accounting positions that do not require you to deal with taxes as many people might assume.