Retirement tax questions

So if I am positive I will make more than 5,500 dollars by the end of this year, I could contribute 5,500 now for 2018 to take advantage of compound interest and not worry about excess contributions so long as I report the eventual income (2018) come tax returns next April?