Yes, this mechanic is common enough that there's a name for them: "charge attacks".
I've seen them mostly with side-scrolling shooters; it was popularized by R-Type (which is the earliest game I know of that had this mechanic) but some of the Gradius and Raiden games featured this as well.