If the story is well known, it could be a bad idea to use the same title, but it's certainly allowed. My understanding is that publishers of first novels often change the title to something not as good but more marketable anyway. (Not that I'd know!)
Consider whether this borrowed title is the absolute best title possible, and whether there could be another just as good. Often there's another one lurking, but the first one you thought of kind of crowds it out.
Maryn, pleased to meet you