Insulin is supplied on a prescription only basis.
However, you should not run out of insulin. At diagnosis I was advised to order a repeat when I still had 2 pens remaining. That ensures for the possible failure of one of the pens and still having insulin in the pen I am using.
Be sure to check that the insulin supplied by the chemist is long dated and that you are not being supplied with short dated stock.