Yes you can. Though, if you have digital versions, it makes the transfer a whole lot simpler. Pokémon Bank can read one game card and as many digital copies as you want.
To begin, place your Pokémon in Pokémon Bank. Put as many as you want, then save and exit. Then, insert the OR/AS Game Card. Take the Pokémon out, and into your box.
Hope I helped!