yup we have a lot of our vegies in pots at the moment as we are renting. the preparation of soil is much the same. just make sure you look at cyclic gardening (using different veg in each pot each season so they don't deplete all of one nutrient from the soil - some replenish as they go) and perhaps companion planting (planting herbs under other veg for their insect repelling factors so you don't have to use chemicals)