According to the NYT Playoff machine, yes.
https://www.nytimes.com/interactive/2017/upshot/buffalo-bills-nfl-playoff-picture.html#bal-ind-16=loss&kc-mia-16=win&ne-buf-16=win&nyj-lac-16=win&ten-lar-16=loss&mia-buf-17=loss
If all of these happen in week 16 and we win in week 17, we're at 100% getting in:
Colts, Chiefs, Jets, and Rams all win.
Pretty confident in Chiefs and Rams.
GO COLTS! GO JETS!