No, using someone else’s login details or credit card is illegal, especially the credit card. However, it’s unlikely that the bookmakers will prosecute those who do.
Bookmakers have systems in place to spot players who use someone else’s login details, so with enough time, those who do it will get caught eventually. In such cases, bookmakers typically close down accounts.