Brazil taxes worldwide income, so it's important to do tax planning before going there. You can structure your affairs to minimize your tax liability in Brazil. It's recommended to seek professional help for tax matters.