No, Mary Shelley did not publish Frankenstein anonymously.
Though only 19 when published in 1818, she was credited as author on the title page. She initially hesitated due to her youth and the story's unconventional nature, but ultimately claimed authorship—a bold move for a teenage woman in 1818.