Pass/no pass hurt transfer chances?

Would opting for pass/no pass in GE courses hurt my chances of getting into a good UC? Is it better to get a pass or a B that will affect my GPA? I am using this class for IGETC, but it’s not part of my major requirements. Thank you!