If you’re self-employed, and all your income is taxed through self-assessment then you will not have a tax code. If you are employed as well as self-employed e.g you have a full-time job and freelance, then you’ll have a tax code.