Well it can work. It's what is called "pre-fatigue". In this specific case it will have 3 potential benefits and 2 possible drawbacks.
1. It will "wake-up" the hamstrings... "scientifically" what goes on is that isolating the hamstrings will activate them and make them more responsive to being recruited during a compound movement... I hypothesize that it's due to increasing the sensitivity of the neuromuscular junction. In simple terms it means that you will be ale to recruit the hamstrings more easily.
It can help improve mind-muscle connection. In simple words by creating a small amount of pump/local fatigue in the hamstrings you will be more aware of them when you do your GM (enhanced feedback) which also facilitate their proper use.
By pre-fatiguing the hams a bit you will recruit the fast twitch fibers sooner in your goodmorning sets (if the hamstrings are fatigued a bit it means that they are not as strong. If they are not as strong they will have to recruit more muscle fibers sooner in your work sets to do the work... you will move less weight and/or do less reps, but for stimulating the muscle it wont matter)
1. You will not be able to use as much weight (see point 3 above). For building mass in the hamstrings it wont matt3er because it simply means that you will take less reps or less weight to get maximum hypertrophy stimulation in the hamstrings. But the movement will become less effective at strengthening the glutes and lower back. So it's a matter of what your priority is. Early in the training cycle doing leg curls as your first exercise, then GM is likely a good idea. But for the later phases I would reverse the order.
- Excessive local pump in the hamstrings might reduce the extensibility of the hams and make them more tensed, which could reduce your range of motion. So if ROM is not large to start with, it might not be the best idea.