A confession not preceded by a Miranda warning where one was necessary can not be admitted as evidence against the confessing party in a judicial proceeding.
In some jurisdictions, a "detention" differs at law from an "arrest", and police are not required to give the Miranda warning until the person is arrested for a crime.