A glute/ham raise is a back extension followed by a hip extension followed by a knee flexion (let's ignore the floor version that leaves out the back extension/hip extension part). When you put a hip flexion into the movement right after the back extension, you essentially shorten the lever arm of the load the knee flexion is lifting by decreasing the distance between your head and your knees. The mass is the same, but it's arranged in a way that's much easier to lift. So no, it's not okay.