question for you guys. i played this hand the other day and was curious on what you though. no limit holdem

I had queen harts, 9 clubs.

the flop was 6 diamonds, queen spade, 9 clubs

i was in the middle of the pack on chips so I wanted to take the pot. the blinds were 20, 40. everyone had checked and it came up to me. I had threw down 100. someone else calls. the turn was a 6 of hearts. he then goes all in. I punked out and folded the hand. he turns over had 6 of spades and 10 of hearts.

Should I have gone in all in right after the flop to try to take him out?

Mike