Having no credit cards, or loans ever isn’t good either. You need to establish credit. Unless you play on buying a home with cash.
Having loans on depreciating assets is the problem. (i.e cars).