The 6th Amendment guarantees the right to a lawyer during critical stages such as interrogation and court proceedings only, e.g. in California the window in which arraignment is guaranteed is 48 hours (this is where the court will offer defendants the opportunity for a court-appointed lawyer).