But, as I said, it can be complicated, especially if that is your goal, as can be done with anything if you so please.
But, a self-sufficient farmer with no employees is not even part of a societal economy in any modern sense. They are a mere peasant. If they are a farmer with a farm that requires no hired labor or modern technology then same thing. If they require a military to protect them and they send surplus to a feudal arrangement, they probably live in a feudalist society. If they own their land and use industrial technology and hire their own wage laborers to produce a surplus to trade it on a market to pay for all of that, they are now part of a modern economy and Marxism would have more to say about that. The latter have dependencies beyond the mere protection of their farmland, meaning the farmer now lives in a capitalist society.