Public trust and secret

I recently received a job offer where I will need a public trust and secret clearance. I am confident that I will not have any issues obtaining the public trust but am worried about the secret clearance just because I worry. If I were to get the public trust and then later be denied a secret clearance would that nullify the public trust?