No. magnets always have two poles, (even electromagnets). Designated North and South.
The mental center of an electromagnet is called the magnetic pole. It is the point on the electromagnet where the magnetic field is concentrated and strongest.
The two ends of an electromagnet are called the north pole and the south pole. These ends are where the magnetic field lines originate and terminate, respectively.
Get a compass
An electromagnet's magnetic field can be turned on and off by controlling the electric current flowing through it, while a permanent magnet's field is always present. An electromagnet can have both a north and south pole, depending on the direction of the electric current.
The compass needle would align itself with the magnetic field produced by the electromagnet. The north-seeking pole of the compass needle would point towards the south pole of the electromagnet, indicating the direction of the magnetic field.
When the direction of current flow is reversed in an electromagnet, the magnetic poles also reverse. This means that the north pole becomes the south pole and vice versa. So, the current in the electromagnet determines the polarity of the magnetic field it produces.
To use the right-hand rule for determining the polarity of an electromagnet, hold your right hand with your thumb pointing in the direction of the current flow. Your fingers should curl in the direction of the magnetic field. The side of the electromagnet where your fingers point is the north pole, while the opposite side is the south pole.
The ends of an electromagnet that are useful are called the poles. There are two poles: the North pole and the South pole, which determine the direction of the magnetic field. The poles play a key role in how electromagnets interact with other magnets and magnetic materials.
Put the South pole of the nail against the bar magnet to see if it attracts or repels.
The easiest is to align the object with the earth's magnetic field and pound on it with a hammer, but this is slow. Another is to rub one pole of a magnet repeatedly in the same direction along it. The fastest is to place it inside an electromagnet solenoid and power the electromagnet from a DC power source.
The polarity of an electromagnet can be determined by the right-hand rule. If the direction of the current flow is known, curl your right hand fingers in the direction of the current flow. Your thumb points in the direction of the north pole of the electromagnet.
Inside the hollow cylindrical electromagnet ("solenoid"), the magnetic field lines are straight, parallel to each other, and parallel to the axis of the cylinder. They get more complicated at the ends, but the above statement is good for a solenoid of infinite length, which has no ends, and is a good approximation in the center of a real one.