You would have to lock the phone in your application, yes. Is it as easy as you might think, no. The Home button cannot be overridden in any app. Only if it is a Home app can you (the kind that lets you customize your home screen) override the Home button function. The other buttons, I'm not sure.
P.S. All posts should be WITH code..