D flip flop wiring question

I mean. It's my second rodeo. I don't know much about much yet. Still feels like the first rodeo. :confused:

So what I'm understanding is that the issue is because the solenoid stores energy and then that discharges through the chip? So for the purposes of just testing this if I was using something that wasn't a solenoid for a read out this setup would be ok?