Yes, a car rental would be ideal. You can also rely on Uber and Lyft. There is public transportation, but it all depends on where you plan to stay and what Los Angeles sights you plan to see. Ultimately, you can't rely on public transportation to take you everywhere. Check out Los Angeles Metro System Maps.