Is it possible to save a data retrieved from the database into a string?

For my case I want to save the TAG\_NAME which is a data from the database into a string. Can I do it the same way as done for the Textview?

```
 // display product data in EditText
                txtwelcome.setText(product.getString(TAG_NAME));

                String name = (product.getString(TAG_NAME));

```