If by "weight" you mean the downward force that a stationary object exerts on whatever is supporting it against gravity, yes, it depends on the
buoyant force of the surrounding medium. If the medium is air, we usually ignore this effect, especially in introductory textbook examples, but if you need a lot of precision you may have to take it into account. Or if the medium is dense, e.g. water.