Will I be eligible for OPT (optional practical training) if I participate in CPT?

Yes, you are.  CPT and OPT are separate work authorizations; however, if you worked full-time on CPT for one academic year then you will be unable to apply for any OPT.