Does packer take care of syspreparation while creating custom image

does packer take care of syspreparation while creating custom image
or do we need to provide command explicitly in the provisioners section.?