Sometimes. It depends on the code format and the game — no$GBA's cheat support is functional but not as polished as some later emulators.
If a code isn't taking, the usual culprits are a mismatched region or the wrong code type selected in the menu. Trying the alternative format for the same code is worth a shot before assuming it's simply unsupported.