Yes, an atom can be act like a bar magnet provided atom(s) in out most orbit should have unpaired electron (simply with one electron). If it is so then it can be equated to the current loop because rate of the charge is current, further how direction of the current and faces of the current loop how indicates that it is equivalent to the bar magnet.