Technically, yes, but normal lasers aren't affected much, seeing as it takes a ton of mass to noticeably bend light. Sol has been shown to bend light noticeably, but something Jupiter-sized wouldn't affect light much, but it would. Even the tiniest amount of mass, even that of a human, bends light, just not very much.