Answering this needs the country, and even then the answer is a pointer to the relevant authority rather than a ruling.
Three broad categories cover most cases: controlled or scheduled substances, prescription-only medicines, and unclassified chemicals. The rules, penalties and enforcement posture differ sharply between them.
Some jurisdictions provide a limited personal-importation allowance for medicines, usually bounded by quantity, by a supply period and by a requirement that the substance is for the importer's own use. Others provide none.
Nothing here is medical advice, and research-use compounds are not approved for human use in any jurisdiction.
Prior successful deliveries tell you about enforcement, not about legality.
edited 29 May 2026 by ines_brandt — fixed an arithmetic slip in the third paragraph