While no law exists that prohibits having two layers of shingles, we do not recommend it.
The savings of putting new shingles over the first layer of shingles are negated by the consequences. Adding more weight to your roof deck affects the structure, limits the lifetime of the shingles, and prevents your roofing contractor from identifying problem areas.