Yes
Both of them are exocrine glands i.e. they have duct systems that accept the glands' secretions; milk and sweat.
glandular epithelium
Mammary glands are compound tubulo-acinar glands, which means that they have branched tubes that end in alveoli. They are modified sweat glands.
Mammary Glands are the organs that produce milk in mammals for the sustenance of the offspring..