Yes, we can definitely say that the given iron bar is a magnet. In a magnet, like poles repel and unlike poles attract each other.
If both the ends of any object get attracted to the north pole of a magnet, then object itself is not a bar magnet. It is just a magnetic substance.