They are different languages, and they are not mutually intelligible. Most Catalan speakers know Spanish, so in practice it's not an issue for them, but Spanish speakers who didn't learn Catalan cannot understand spoken Catalan at all, even though they appear quite similar in writing.