Dear student,
It is quite obvious that when there is flow of electrons magnetic field is produced and we also know that current is nothing but the flow of electrons in the wire so the main cause of magnetic field is electric current.
Hence the given statement is true.
Regards.