Filled Cupcakes

AHello
I'd like to know if it´s possible to filled my cupcakes with homemade strawberry filling (cooked strawberry, sugar and cornstarch mix) before cooking them (put the filling in raw batter with pastry bag or a spoon)
I did it once with canned raspberry pie filling and it work just fine.
Please give me your opinion, it would be very helpfull
Thanks
Laetia

ATanks for your answer.
Because of your doubts about the technique, I did some testing with a few of my cupcakes before cooking the whole batch. My filling was cold and pretty stiff. Good result with both techniques. They where not gooey at all and nothing spill from the top of them. I finaly decided to use the piping bag technique because it was less manipulation. When some filling was showing by the piping hole, I added just a tiny bit of raw batter to cover.
Everybody loved those strawberry shortcake mini cupcakes!