Ask a Lawyer and Get Answers to Your Legal Questions
No, the officer required a warrant prior to entering.
You will want to ask your lawyer about excluding evidence found during the search from any trial that you may have. (The prosecutor's office may decide not to prosecute based on a "bad search").
If you are not currently represented by counsel, get an attorney. If you cannot afford an attorney, request one from the court. Do not attempt to represent yourself in this kind of criminal legal action, and do not speak to law enforcement without your attorney present (be respectful, but firm - request a lawyer to be with you during any questioning, informal or formal).