No you can’t this way. See documentation :
$echo = text_function();
printf( __( 'My string is %s', 'my-text-domain' ), $echo );
No you can’t this way. See documentation :
$echo = text_function();
printf( __( 'My string is %s', 'my-text-domain' ), $echo );