It depends on the type of weed you have.
I had a problem with couch grass growing all over my garden bed, coming through the neighbours fence (they are not gardeners!). I went to Bunnings and asked the guy there if weedmat will stop couch grass. He said no, it doesnt work. Couch grass is...