Do i have to also file for social security tax where it says nonfarm option on my delivery income to get all my social security credits?

do i have to file for social security tax on my delivery income in order to get my social security credits or is it taken out of my taxes paid?