You can absolutely get a Non-O from a Thai embassy or consulate overseas, though not all offices will issue one for every purpose. You may be thinking of the fact that some Thai embassies won't issue a Non-O for retirement, but that's due to a local policy, not a universal MFA rule.