Yes indeed, and can be seen as an initiating or retaliating act, depending on your assessment of what preceded it.
Retaliating for what? What hostile act had the Sumter garrison performed prior to the bombardment? Other than not surrendering?