It doesn’t need to but it can. The purpose of landscape fabric is to prevent weeds from growing through and into your garden beds. So the fabric should go right up to the edging but it doesn’t need to go under it. However, it could be helpful to back tuck the excess fabric underneath the edging to secure the fabric in the ground.