Yes, but on the other hand, we all need our time of apprenticeship.
If you admire Hemingway it doesn't hurt to end up imitating him for a while.
Look at how much Cormac McCarthy learned from Hemingway. I would say a lot.
We learn from our favorite writers, we don't start out tabula rasa.
Yes, it's fine to copy your heroes as an exercise.