You must still follow any timing restrictions and permissions, including those based on the card's type. For instance, you can cast a sorcery using flashback only when you could normally cast a sorcery.

Artwork
Loading artwork…
Plunder the Trollshaws
The Hobbit · #51 · EN
Nonfoil—Foil—
Card rules
Draw a card. If this spell was cast from a graveyard, draw two cards instead.
Flashback 3
(You may cast this card from your graveyard for its flashback cost. Then exile it.)
The swords caught their eyes particularly, because of their beautiful scabbards and jeweled hilts.
Common · Illustrated by Alexander Mokhov
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
A spell cast using flashback will always be exiled afterward, whether it resolves, is countered, or leaves the stack in some other way.
If a card with flashback is put into your graveyard during your turn, you can cast it if it's legal to do so before any other player can take any actions.
"Flashback [cost]" means "You may cast this card from your graveyard by paying [cost] rather than paying its mana cost" and "If the flashback cost was paid, exile this card instead of putting it anywhere else any time it would leave the stack."