Yes , displacement can be zero but distance because displacement has both direction and magnitude while distance has only magnitude. Therefore, as we move from our home to the shop and then back to home, displacement is zero while distance is not zero. The distance can be zero only if the object remains at rest.
Regards