Bad question...because the answer is, it depends.
Weight is just the force of gravity W = mg = GmM/R^2; where m is mass (matter) of the weighed object, g is acceleration due to gravity, G is a constant, M is the attracting mass (e.g., Earth), and R is the distance between the centers of the two masses. From the above, we see that g = GM/R^2; so the gravitational acceleration varies according to R and M.
Now as to why the answer is, "it depends." We see that one can write m = W/g; so that if we know g and weigh the object, we can find its mass (matter). So if we are willing to accept weight as an indirect or surrogate measure of mass, then the answer is true. That is, we can always derive mass if we measure both the g and W factors.
On the other hand, if the question means is weight a direct measure of mass, then the answer is false. Why? Because we also need to know what g = GM/R^2 is. And that varies from place to place.
That is, we cannot simply assume g = 9.81 m/sec^2, which is kind of the average g on Earth's surface R distance from the center of Earth. But what if we're weighing an object on the surface at r of the Moon of mass m where m < M and r < R? Clearly g on the Moon will be way less than that on the Earth.
Thus, the bottom line is...it depends. It depends on if we know or do not know what g is.
[We can find a mass m if we know a mass M and balance them on a teeter totter like device. In which case we have f X L = F X l and mg X L = Mg X l; so that m = (l/L)M and, ta da, the g's cancel out. L and l are the distance each mass is sitting from the pivot point of the teeter totter. But here, again, weight is not the measure.]