Yup, 100 percent. You’ll be looking to create a snippet file. So in Online Store > Actions > Edit Code, open your snippets folder and Add a New Snippet. Lets just say for this case you call your snippet “my-table” – it saves as “my-table.liquid”. Then you paste your table code into the snippet. Then anywhere else on the site where you want to output your table you can call either:
{% include 'my-table' %}
// or
{% render 'my-table' %}
They do the same thing, but “include” has been deprecated. Also, you can pass variables and objects to snippet files if you may need them. Say you were putting your table on a product page, and for whatever reason you needed the price of that specific product included in the table dynamically. Well, when you’re in product.liquid you have access to the product object, but in your snippet you don’t. So you can actually pass the product object to your snippet:
{% render 'my-table' , my_product: product %}
Then if you needed the price in your snippet you could reference it by saying:
{{ my_product.price | money }}
//output $19.99
I would just call it product actually, but for the purposes of the explanation I called it “my_product” because doing:
{% render 'my-table' , product: product %}
Is kind of confusing. You can call it whatever you want on the left side, that’s just how you’ll have to refer to it in the snippet itself.