Yes. Both orders are correct. Putting the infinitive clause first shifts the focus slightly onto the action:
|É importante conhecer gastronomia local.| (Impersonal emphasis: “It is important…”)
|Conhecer gastronomia local é importante.| (Action-centered: “Getting to know local cuisine is important.”)
With an infinitive construction, you don’t use que. If you want to specify a personal subject (e.g. “you”), you switch to que + subjunctive:
• É importante conhecer gastronomia local. (general)
• É importante que tu conheças a gastronomia local. (directly addressing “you” in informal European Portuguese)