Yes it is possible.
Implement the UITabBarControllerDelegate protocol's tabBarController:shouldSelectViewController:
method execute your code and return NO
.
Example
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController
{
// Do your stuff here.
return NO;
}