Simple answer is, as you've identified, YES!
Generally it is a good idea to break up program logic imto discrete blocks either in Sub-routines, or seperate Activities and Subroutines, ideally with a naming convention which makes it obvious the purpose of each discrete block.
Douglas