Minors (under 21) may NOT purchase any alcohol anywhere in the United States. But, If your parent(s) give you permission to drink, you may as long as you are at YOUR house.
There are no "dating" laws in Maryland and likely not in any other state either. This is a common confusion with age of consent laws, which govern ages a person is considered capable of consenting to...