When we report questions, there is no inversion of the subject and auxiliary in the reported clause (the word order is the same as in statements) and we do not use a question mark.
Yes/no questions
reporting clause + if/whether-clause (with no inversion)
When reporting a yes/no question, we use if or whether: