Question about SEP and traditional IRA and/or Roth in same year.

I was self-employed for half the year after retiring (age 67) from a traditional job in June.  If I do a SEP and also a traditional IRA,  can the total amount equal no more than $6,500?  My self-employment gross pay was $17,550.