Yes, fennel is related to carrots, both being part of the same broader plant family of Apiaceae, along with celery and parsley. However, their flavor profile is quite different.