welcome to FT NotJasonSchwartzman
Yes you can only earn avios and TPs on CZ when booked as a BA codeshare, and BA codeshares will only be available to book when you are connecting to/from a BA flight. So yes if booked separately and directly from CZ, you wouldn't earn anything for your CZ flight when crediting to BAEC.