Of course not. Factories are a product of capitalist development. But this monopoly of means of production is a necessity for capitalism, because without it, there is no salaried work. Therefore, we had things like the enclosure of communal lands in Europe that were instrumental for deprieving people of means of production.
Why do you think that in American continent we had slave labor? How do you convince someone to work in your land if the person is able to simply go and easily take for herself vacant land and produce for herself instead of producing for someone else and get a salary smaller than her production? Slavery was how you deal with the problem forcing people to work. Later (and usually before the enslaved people are freed), the land becomes a commodity and then nobody can so easily simply take land for herself.