You can cast a spell using flashback even if it was somehow put into your graveyard without having been cast.
Travel Preparations
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.
A spell cast using flashback will always be exiled afterward, whether it resolves, is countered, or leaves the stack in some other way.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Vincent Proce
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
