I'm going to apply to work in publix, do they test your hair for drugs?

Hair can be tested. Hair can be tested for drugs. Whether a specific employer does so or not is something to look for on their website or by calling their human resources department.