If I understand your question correctly: No - sort of. Neither the 1% DoD auto-contribution nor the 4% match count towards your annual contribution limit of $18,000, but it
does count towards the less common $54,000 annual limit. From TSP.gov:
Elective Deferral Limit $18,000
Applies to combined total of traditional and Roth contributions. For members of the uniformed services, it includes all traditional and Roth contributions from taxable
basic pay,
incentive pay,
special pay, and
bonus pay, but does not apply to traditional contributions made from tax-exempt pay earned in a combat zone.
Annual Addition Limit $54,000 IRC §415(c)
An additional limit imposed on the total amount of all contributions made on behalf of an employee in a calendar year. This limit is per employer and includes employee contributions (tax-deferred, after-tax, and
tax-exempt),
Agency Automatic (1%) Contributions, and Matching Contributions.
https://www.tsp.gov/PlanParticipation/EligibilityAndContributions/contributionLimits.html