If on one ticket LHR-jnb-wdk then yes, bags checked through and an easy transit. Separate tickets would mean clearing immigration, collecting bags and rechecking which is a pain (allegedly, I’ve never checked bags to jnb). Again, all the info you could ever want or need about travelling to/from/through jnb is in the excellent master thread in the Africa forum...