It could be, but not necessarily, but it could have been to encourage more people to worship him. To be frank, that makes more sense than Jesus giving his life for mine. What does that actually mean? People die just as much after Jesus was crucified as they did before. There was no effect on physical death. God could defeat Satan, forgive sins, etc. without Jesus dying. So why did Jesus have to die?
If God is all-powerful, why did he need Jesus' death to do something? The nly purpose I can see that actually makes sense is that it was a spectacle designed to draw attention to Jesus' message, which was to love God with all your heart, mind and soul.