No, not necessarily. For example, God sometimes allows things to happen in our lives that we do not understand, and may even cause us discomfort. If we question in our hearts and minds why he allowed it to happen, so long as we do not let our questioning lead us to loss of faith or hatred of Him, then it cannot be called sinful.