No, all parts of a magnet do not have equal magnetic strength. In a bar magnet, the magnetic field around the pole is stronger than the middle part, where the magnetic field is weaker. Also, in case of a horseshoe magnet, the magnetic strength is higher between the poles. Because, both the poles are in the same direction. Hence, the poles produce a very strong magnetic field in comparison to the middle part of the magnet.