Yes, if you were in police custody and under interrogation, then you
were entitled to have the requisite Miranda warnings given to you
(irrespective of the offense which the cops suspected you of having
committed) and if such were not provided to you, then a pretrial motion
to suppress your confession resulting from this improper interrogation should be filed with the court.