Yes; the Senator was very ill at the end of his life.
It's likely he asked a Catholic priest to hear his last confession. If in that moment /Kennedy had true sorrow and repentance for his many sins, the priest had little choice but to pardon them. That means God forgave him. But we only speculate. No one can say.
Hope you don't object, Carlos? Saint that you surely are.