Depending on where the spanish speaker is from (accents can make a big difference) you can kind of carry on a conversation (as a brazilian). Unless you plan on living in a portuguese speaking country or near one, or really love Portuguese, just learn Spanish as it'll probably be more useful to you