3dClustSim on p values

Dear AFNI experts,

I’m trying to do cluster-based multiple comparison correction for whole-brain-level p-values (saved in a sub-brick in AFNI file), and I was just wondering if 3dClustSim can be used for this purpose? Or is there another command I should use? Thanks!