No he wasn’t Andrew Johnson, along with Abraham Lincoln ran together on the National Union Party Ticket.
AJ had BEEN a Democrat, prior to the running with Lincoln.
You might wanna look that up. Here's some help. And running on a ticket is different than running for a party or affiliation.