Using wp_kses for sanitization of string input

Hello
Knowledgebase mentions wp_kses for string input sanitization.

$my_string_input = wp_kses($_POST["my_string_input"], $allowed_html);

Is there anything I need do in this code before applying $wpdb methods?

Thank you.

Applying wp_kses on the user input might save you from xss issues, best is to actually use esc_html when you echo stuff rather than using wp_kses when you save stuff.
When interacting with the database, you don’t need to apply filters on the input BUT you need to prepare your sql statement using $wpdb->prepare() so i suggest reading more about this. Never interpolate strings from user input in your sql queries. Never.