Not in the standard game. Weapon spread in Team Fortress 2 is fixed by design, and there is no setting or console command that removes it.
Most weapons are hitscan with perfect accuracy anyway, so the ones that do have spread are balanced around having it. Removing the randomness would change how those weapons perform rather than just tidying them up.
The exception is on community servers. Server plugins can alter weapon behaviour, so some servers run modified versions with different accuracy characteristics. If that is what you want, look for a server advertising it rather than trying to change it client-side, which would be cheating.