Yes you can hold both mechanical and avionic licences and there are a lot of us that do. Airlines and operators tend to cap their staff's licence payments it is therefore only to their advantage that you have all trades on your licence.
The FAA have been issuing licences that allows you to sign out the entire aircraft, except some CAT critical systems, as soon as mechanics pass their A&P licence and a 40hr familiarisation course on the aircraft.