Of course you can, by applying at the Turkish embassy in Muscat.
If you had a Schengen/UK/US/Irish visa or residence permit, you could get an electronic entry permit, which is easier, but because you don’t you’ll have to apply for a transit visa at the embassy
Credit:stackoverflow.com‘