You can offer your story to the police but the fact that you did or what you said to them will not come into evidence in court. You cannot call the officer to the stand and then ask them to repeat in court what you said. That would be "hearsay." So, for a lot of reasons, if you're already arrested, you probably don't even want to tell them any of that. It can only be used against you and never for you. Get your lawyer and have them ready the case to prove that alibi for you.