Brazil, like most South American countries, takes a dim view of drug offences, including by foreign visitors. Your own consulate is likely to agree.