Absolutely, you can. God looks at the heart, not at the outside.
As long as you come in to the house of God (church) with a worshipful attitude, not to impress anyone with what you wear or not to meet the expectations of people, that's what matters.
God in the end wants a repentant heart trusting Jesus.