If I am arrested do the police have to read me my rights?

No.

 

Miranda has nothing to do with the legality of the arrest.

 

Miranda concerns statements made after an arrest, not before.

 

If you make a statement to the police before the arrest, it is considered voluntary. A voluntary statement can be used in court.