Doesn't ruin it, but the humor seems forced and/or misplaced. But I realize they're going for broader appeal.
The humor DID totally ruin Age of Ultron for me. And although the absence of the cringy humor in Captain Marvel couldn't have saved that film, but it reduced Nick Fury to jokes. Same for Ironman 3.
The thing to note however is Marvel/MCU is not letting great be the enemy of good. I also realize this is why most MCU movies are just B grade to me (Ironman, Infinity War, Winter Soldier and maybe Ragnarok being the exceptions). They are going for the broadest appeal and not necessarily the best story. They prefer consistency over potentially having great films.
The irony is, great films tend not to play well with universe building from multiple directors. They generally don't let directors put too much of their stamp on the film. They keep the dialogue and by proxy the humor basic. The color pallette is the same across all movies. They blatantly "borrow" tropes from other films that have already proven themselves. All directors borrow, so I'm not tripping.
But to those ends, I still applaud MCU because they have done something not even Star Wars has done; made a good, complex multi-movie franchise universe. I just don't expect greatness from the MCU. Just good. And that's alright, I can be happy with good.