Yes, a person is permitted to buy medicinal products from a pharmacy within the EEA that has license to sell medicinal products online. The import has to fulfil all provisions and restrictions in regulation No. 212/1998 on importation by individuals of medicinal products for personal use, stated in the answer to questions No. 2, 3, 5, 6 and 7.
Further information on the regulation is available on IMA's website.