If you invest in shares and earn money can it be shown as self employment?

No. If you look at your appropriate tax prep forms, there are separate sections for filling in money earned from self-employment and investment income.