Lenders may or may not let you do this. They will consider your credit score, which needs to be at least good. They will also consider the loan-to-value ratio, meaning if you are borrowing a lot more than the car is worth, they will likely not let you roll sales tax and fees into the loan.
Generally, the best practice is to pay your fees and tax upfront, in cash, along with a significant down payment. This will save you money over the life of the loan on the interest you pay. Borrow what you need and make your loan term as short as your budget can stand. Remember, shorter-term loans have higher monthly payments.
“