Can I use fragment as activity

I’m workin in Android Studio to make an application. I make fragments and now I wanna fill them. But in .kt files there’s some codes that I didn’t see in activitiys. So is it gonna make a problem if I just fill that fragment as it’s like an activity?