@Bảo0 There are many hosts who have that situation. As long as you and your family are okay with that and you make it clear in your listing information, it shouldn't be a problem. And you need to make sure you descibe it properly- I think you can't list it as an "Entire apt", as that would have a separate entrance. You'd have to list it as a suite in your home.
But hopefully there is some kind of lockable door on the basement apartment- many guests feel unsafe if they can't lock the door to their private space.