If you are going into a law enforcement job with the 6C enhanced pension, its back end time. For LEO special retirement under FERS you must serve the minimum number of years (20 yrs at age 50, 25 yrs at any age) in a LEO covered position to get an enhanced pension calculation. Buying back your military time will give you a larger pension, but will not count toward time in the covered LEO position. Again, if you don't do 20/25 in a covered position, you entire pension is based on the regular civilian formula. So yes it can shorten how long you work on the LEO side, but you will lose the enhancements by leaving "early." Otherwise the time bought back military time or other federal employment is added on with a reduces value (1%) to the 20/25 base years.
The formula looks like this:
Pension = [Years of LEO service up to but not exceeding 20 years × average high 3 year salary × 0.017] + [# of years of service exceeding 20 including all other LEO/military/regular fed service × average high 3 year salary of exceeding service ×0.01]
Also - if you don't do a full 20/25 of LEO covered service, you also lose the FERS supplement.