Yes, an American N64 can play Japanese games — but it requires a small modification.
To do it, you'll need to remove the plastic tabs inside the cartridge slot. Those tabs are what physically block Japanese cartridges from fitting, so once they're gone, Japanese games will slide right in and play. Just be aware that altering your console this way may affect its condition, so proceed with care.