No. Fasting is not needed if you’re just doing a CBC.

Keep in mind it’s common to have much more tests done than only a CBC. If this is your case, you’ll likely need to fast. Check your testing instructions carefully before going to the lab.

You can see how to find your testing instructions here.