I think this translation of prăjitură is rather strange. Can't this word mean any kind of pastry including cake?
Yes, you can. The usage of "prăjitură" is far wider than that of "cupcake".
it come from the word "a prăji" (slavic) which means to cook with fire (roast)