According to Biot-Savart’s law, the magnetic field at a point due to the incremental element of length dl carrying a current is given by
$(dB = \frac{{{\mu _0}Idl}}{{4\pi {r^2}}})$
Where B is a magnetic field in Tesla
I, is the current in the wire in Ampere
r is the radius of the wire in meter
From the above expression, it is clear that the magnetic field at a point due to the incremental element of length dl carrying a current is directly proportional to the current carried by the element.